package com.ylp.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ylp.common.response.PageResult;
import com.ylp.sys.domain.dto.RoleDto;
import com.ylp.sys.domain.dto.RolePageDto;
import com.ylp.sys.domain.entity.SysRole;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 系统角色表 服务类
 * </p>
 *
 * @author cc
 * @since 2024-07-24
 */
public interface SysRoleService extends IService<SysRole> {
    List<Map<String, Object>> getSelectList();

    PageResult<SysRole> pageList(RolePageDto rolePageDto);

    void addRole(RoleDto roleDto);

    RoleDto getRoleAndMenuIdsById(Long id);

    void updateAndMenus(RoleDto roleDto);

    void deleteByIds(List<Long> ids);

    void updateStatus(SysRole role);

    Map<String, Object> searchAuthAndNot(Long roleId);
}
